package com.wfe.db.com.wfe.listener;

import org.hibernate.event.SaveOrUpdateEvent;
import org.hibernate.event.def.DefaultSaveOrUpdateEventListener;

import com.wfe.db.SessionUtil;

public class WFEUpdateListener extends DefaultSaveOrUpdateEventListener
{
	private static final long serialVersionUID = -3346810258894241387L;

	@Override
	public void onSaveOrUpdate(final SaveOrUpdateEvent event)
	{
		super.onSaveOrUpdate(event);
		SessionUtil.closeSession(event.getSession());
	}
}
